﻿using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Web;
using Acaweb.Model.Entities;

namespace Acaweb.Servicios.Contracts
{
    [ServiceContract]
    public interface IAuthenticationService
    {
        [WebInvoke(Method = "POST", UriTemplate = "Login", BodyStyle = WebMessageBodyStyle.WrappedRequest, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        Utility.ServiceResponse Login(string Username, string Password);

        [WebInvoke(Method = "POST", UriTemplate = "GetCurrentUser", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        Security.User GetCurrentUser();

        [WebInvoke(Method = "POST", UriTemplate = "GetByDocumentoIdentidad", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        List<Estudiantes> GetByDocumentoIdentidad(int DocumentoIdentidad);
    }
}
